package com.yidu.hbats.dao;

import com.yidu.hbats.model.AtsPlanCurriculum;
import com.yidu.hbats.model.AtsPlanPhase;
import com.yidu.hbats.model.AtsPlanWeek;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AtsPlanWeekMapper {
    AtsPlanWeek findById(Integer weekId);
    /**
     * 根据指定方案创建人查
     * @param creater
     * @return
     */
    List<AtsPlanWeek> findIdTwo(String creater);
    /**
     * 根据创建人查计划
     * @param creater
     * @return
     */
    AtsPlanWeek findById(String creater);


    /**
     * 查询所有
     * @return
     */
    List<AtsPlanWeek> findCoach(AtsPlanWeek atsPlanWeek);
    List<AtsPlanWeek> findAthlete(AtsPlanWeek atsPlanWeek);
    List<AtsPlanWeek> selectAll(AtsPlanWeek atsPlanWeek);
    /**
     * 分页
     * @return
     */
    int countAll(AtsPlanWeek atsPlanWeek);
    int countCoach(AtsPlanWeek atsPlanWeek);
    int countAthlete(AtsPlanWeek atsPlanWeek);

    /**
     * 修改是否有效
     *
     * @param atsPlanWeek
     * @return
     */
    int updateIsva(AtsPlanWeek atsPlanWeek);

    /**
     * @mbg.generated 2019-10-29
     */
    int deleteByPrimaryKey(Integer weekId);

    /**
     * @mbg.generated 2019-10-29
     */
    int insert(AtsPlanWeek record);

    /**
     * @mbg.generated 2019-10-29
     */
    int insertSelective(AtsPlanWeek record);

    /**
     * @mbg.generated 2019-10-29
     */
    AtsPlanWeek selectByPrimaryKey(Integer weekId);
    AtsPlanWeek findMaxPid(int coachId);
    /**
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKeySelective(AtsPlanWeek record);

    /**
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKey(AtsPlanWeek record);
}